#include "os_inc.h"
#include "os_cards.h"
#include "hand_value.h"

int main()
{
	uint8_t gcards[5], pcards[2];
	memset(gcards, OS_CARD_NONE, sizeof(gcards));
	gcards[0]=os_cardstr_tocode("2h");
	gcards[1]=os_cardstr_tocode("3d");
	gcards[2]=os_cardstr_tocode("4d");
	//gcards[3]=os_cardstr_tocode("5s");
	//gcards[4]=os_cardstr_tocode("6s");
	pcards[0]=os_cardstr_tocode("5d");
	pcards[1]=os_cardstr_tocode("ad");

	uint32_t value =os_compute_hand_value(pcards, gcards);
	printf("value=%X %s\n", value
		,os_hand_value_2_text(value));
	return 0;
}

